//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Expressions
{
    class DoubleConstantExpression : ConstantExpression
    {
        public DoubleConstantExpression(string originalString, double value)
        {

            this.originalString = originalString;
            _value = value;
        }
        private readonly string originalString;
        public string OriginalString
        {
            get { return originalString; }
        }
        public override string GetText(TextContext context)
        {
            return OriginalString;
        }

        private readonly double _value;
        public double DoubleValue
        {
            get { return _value; }
        }
        public override object Value
        {
            get { return DoubleValue; }
        }

    }
}
